package com.zc.angelica.controller;


import com.zc.angelica.entity.ResponseData;
import com.zc.angelica.service.AccountClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 账户客户端信息(AccountClient)表控制层
 *
 * @author makejava
 * @since 2022-04-10 18:32:51
 */
@RestController
@RequestMapping("/accountClient")
public class AccountClientController{

    @Autowired
    private AccountClientService accountClientService;

    @GetMapping("/allClient")
    public ResponseData allClient() {
        return accountClientService.allClient();
    }

    @GetMapping("/bindingClient")
    public ResponseData bindingClient(String clientCode) {
        return accountClientService.bindingClient(clientCode);
    }

    @GetMapping("/unbindingClient")
    public ResponseData unbindingClient(Long id) {
        return accountClientService.unbindingClient(id);
    }

}

